package day02;

import java.util.Scanner;

public class leetcode {                                //判断回文数
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        int comnum=num;
        int compare=0;
        while (num>0) {
            int ge=num%10;
            num=num/10;
            compare=compare*10+ge;
        }
        System.out.println(compare);
        if(comnum==compare) System.out.println("Yes");
        else System.out.println("No");
    }
}
